import React, { Component } from 'react';
import {Consumer} from './Context'
class Grandson extends Component {
    render() {
        return (
            <Consumer>
                {({msg}) => {
                    console.log(msg)
                    return <div>
                        {msg.code}
                        <button >点击改变content值</button>
                        子子组件
              </div>
                }}
            </Consumer>
        );
    }
}

export default Grandson;